<template>
	<div>
		<table cellpadding="0" cellspacing="0" class="recepit_table2">
			<tbody>
				<tr>
					<td class="tit">单号</td>
					<td>{{ receiptsDetail.code || '' }}</td>
					<td class="tit">制单人</td>
					<td>{{ receiptsDetail.make_user_name || '' }}</td>
					<td class="tit">制单时间</td>
					<td>{{ receiptsDetail.create_time || '' }}</td>
					<td class="tit">货品种类</td>
					<td>{{ receiptsDetail.goods_category_code_name || '' }}</td>
					<!-- <td class="tit">退货原因</td>
          <td>{{ receiptsDetail.refund_cause_name || '' }}</td>
          <td class="tit">配送方式</td>
          <td>{{ receiptsDetail.receive_type_name || '' }}</td> -->
				</tr>
				<tr>
					<td class="tit">入库位置</td>
					<td>{{ receiptsDetail.come_type_code_name || '' }}</td>
					<td class="tit">分配门店</td>
					<td>{{ receiptsDetail.to_type_code_name || '' }}</td>
					<td class="tit">收货方式</td>
					<td>{{ receiptsDetail.receive_type_name || '' }}</td>
					<td class="tit">货品类别</td>
					<td>{{ receiptsDetail.goods_category_type_name || '' }}</td>
				</tr>
				<tr>
					<td class="tit">结算方式</td>
					<td>{{ receiptsDetail.settle_type_name || '' }}</td>
					<td class="tit">业务日期</td>
					<td>{{ receiptsDetail.business_time || '/' }}</td>
					<td class="tit">总数量</td>
					<td>1</td>
					<td class="tit">总金重（g)</td>
					<td>{{ receiptsDetail.total_gold_weight || '' }}</td>
				</tr>
				<tr>
					<td class="tit">总件重（g)</td>
					<td>{{ receiptsDetail.total_piece_weight || '' }}</td>
					<td class="tit">总标价</td>
					<td>{{ receiptsDetail.total_sticker_price || '' }}</td>
					<td class="tit">总成本</td>
					<td>{{ receiptsDetail.total_cost || '' }}</td>
					<td class="tit">状态</td>
					<td class="ele-text-primary">{{ receiptsDetail.status_name || '' }}</td>
				</tr>
				<tr v-if="receiptsDetail.cause">
					<td class="tit">拒绝原因</td>
					<td colspan="7" class="ele-text-danger">{{ receiptsDetail.cause || '' }}</td>
				</tr>
			</tbody>
		</table>
	</div>
</template>

<script setup>
	import {
		ref,
		reactive,
		unref,
		onMounted
	} from 'vue';

	const props = defineProps({
		receiptsDetail: Object
	});

	console.log('---', props.receiptsDetail);
</script>

<style></style>